<template>
     <div>
        <h1>{{ pageTitle }}</h1>
        <p>{{ lorem }}</p>
        <ul>
            <li v-for="(item, index) in items" :key="index">{{ item }}</li>
        </ul>

        {{ id}} {{ name }} {{ link }}
    </div>
</template>

<script lang="ts" setup name="Detail">
import { useRoute } from "vue-router";
import { ref, toRef, toRefs } from 'vue';

defineProps(['id','name','link'])



const pageTitle = ref('Product Details');
const lorem = ref('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.');
const items = ref(['Item 1', 'Item 2', 'Item 3']);

</script>

<style scoped>
    .detail-container {
        max-width: 600px;
        margin: 0 auto;
        padding: 20px;
        background-color: #f0f0f0;
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    h1 {
        color: #333;
        font-size: 24px;
        margin-bottom: 10px;
    }

    p {
        color: #666;
        font-size: 16px;
        line-height: 1.6;
    }

    ul {
        list-style-type: none;
        padding: 0;
        margin-top: 20px;
    }

    li {
        margin-bottom: 5px;
        font-size: 14px;
        color: #888;
    }
</style>